package com.corpgovernment.organization.controller;

import com.corpgovernment.api.organization.bo.SearchLandmarkRequestBO;
import com.corpgovernment.api.organization.bo.SearchLandmarkResponseBO;
import com.corpgovernment.common.base.JSONResult;
import com.corpgovernment.organization.service.ILandmarkService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangyujue
 */
@RestController
@RequestMapping("/landmark")
@Slf4j
public class LandmarkController {

	@Autowired
	private ILandmarkService landmarkService;

	@RequestMapping("/search")
	public JSONResult<SearchLandmarkResponseBO> search(@RequestBody SearchLandmarkRequestBO request){
		return JSONResult.success(landmarkService.search(request));
	}

}
